import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class bottomSheet {
  showCustomModalBottomSheet(context,
      {Widget title, Widget options, Widget bottomBtn}) {
    return showModalBottomSheet(
        backgroundColor: Colors.transparent,
        isScrollControlled: true,
        context: context,
        builder: (context) {
          return Container(
            clipBehavior: Clip.none,
            color: Colors.white,
            // constraints: BoxConstraints(minHeight: MediaQuery.of(context).size.height / 2.0),

            child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                mainAxisSize: MainAxisSize.min,
                children: [
                  title,
                  options,
                //  Expanded(child: options),
                  Container(
                    margin: EdgeInsets.only(top: 15),
                    child: bottomBtn,
                  )
                ]),
          );
        });
  }
}
